import * as express from 'express'
import { basic } from '../controller/user/basic'
import { auth } from "../middleware/user.middleware";
import { formData } from "../middleware/formData.middleware";

const indexRoute: express.Router = express.Router()
// 注册
indexRoute.post('/register', formData, basic.register)
// 登录
indexRoute.post('/login', basic.login)
// 获取用户信息
indexRoute.post('/getUserInfo', basic.getUserInfo)
// 编辑用户信息
indexRoute.post('/editUserInfo', auth, basic.editUserInfo)



export default indexRoute